P = {'a': 0}
M = [42]

a_ = P['a']
M[a_] += 1